package flst.ipiweb.process;

import flst.ipiweb.persistance.FactoryDAL;
import flst.ipiweb.transverse.Commande;
import flst.ipiweb.transverse.IPIWebException;

public class CommandeProcess {

	public Commande getCommandeById(int id) throws IPIWebException{
		return FactoryDAL.getInstance().getCommandeDAL().getCommandeById(id);
	}
	
	public void envoyerCommande(int id) throws IPIWebException{
		FactoryDAL.getInstance().getCommandeDAL().EnvoyerCommande(id);
	}
}
